﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<iss.sg4210.se18.team6s.jass.DAL.Address>" %>
<% using (Html.BeginForm())
   {%>
<%: Html.ValidationSummary(true) %>
<fieldset>
    <legend>Fields</legend>
    <div class="editor-label">
        <%: Html.LabelFor(model => model.Block) %>
    </div>
    <div class="editor-field">
        <%: Html.TextBoxFor(model => model.Block) %>
        <%: Html.ValidationMessageFor(model => model.Block) %>
    </div>
    <div class="editor-label">
        <%: Html.LabelFor(model => model.Street) %>
    </div>
    <div class="editor-field">
        <%: Html.TextBoxFor(model => model.Street) %>
        <%: Html.ValidationMessageFor(model => model.Street) %>
    </div>
    <div class="editor-label">
        <%: Html.LabelFor(model => model.Unit) %>
    </div>
    <div class="editor-field">
        <%: Html.TextBoxFor(model => model.Unit) %>
        <%: Html.ValidationMessageFor(model => model.Unit) %>
    </div>
    <div class="editor-label">
        <%: Html.LabelFor(model => model.Floor) %>
    </div>
    <div class="editor-field">
        <%: Html.TextBoxFor(model => model.Floor) %>
        <%: Html.ValidationMessageFor(model => model.Floor) %>
    </div>
    <div class="editor-label">
        <%: Html.LabelFor(model => model.Country) %>
    </div>
    <div class="editor-field">
        <%: Html.TextBoxFor(model => model.Country) %>
        <%: Html.ValidationMessageFor(model => model.Country) %>
    </div>
    <div class="editor-label">
        <%: Html.LabelFor(model => model.PostalCode) %>
    </div>
    <div class="editor-field">
        <%: Html.TextBoxFor(model => model.PostalCode) %>
        <%: Html.ValidationMessageFor(model => model.PostalCode) %>
    </div>
    <p>
        <input type="submit" value="Save" />
    </p>
</fieldset>
<% } %>
<div>
    <%: Html.ActionLink("Back to List", "Index") %>
</div>
